﻿

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Profile;


    public partial class admin_head : System.Web.UI.UserControl
    {
        // Fields
        protected ImageButton ImageButton1;

        // Methods
        protected void ImageButton6_Click(object sender, ImageClickEventArgs e)
        {
            base.Session["Adminlogin"] = null;
            base.Session["Uid"] = null;
            base.Response.Write("<script language=javascript>window.top.location.href='login.aspx';</script>");
            base.Response.End();
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (base.Session["Adminlogin"] == null)
            {
                base.Response.Write("<script language=javascript>window.top.location.href='login.aspx';</script>");
                base.Response.End();
            }
         
        }

    }
